<?php
namespace app\home\controller;


use think\Controller;
use think\Db;

class CityController extends Controller
{
    public function index(){
        $citys = Db::table('ew_city')->select();
        $dos = Db::table('ew_behavior')->select();
        $this->assign ('citys',$citys);
        $this->assign ('dos',$dos);
        return $this->fetch();
    }
    public function first($behav_id){
        $pic = Db::table('ew_behavior')->where('behavior_id',$behav_id)->value('behavior_pic');
        $this->assign ('pic',$pic);
        return $this->fetch();
    }
}